Powered and passive lower limb prosthesis and control